﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace YnPlcDataServer.Entities
{
    /// <summary>数据采集器(设备)表</summary>
    public class YnDaq
    {
        /// <summary>采集器id</summary>
        public int daq_id { get; set; }
        /// <summary>创建时间</summary>
        public DateTime createTime { get; set; }
        /// <summary>修改时间</summary>
        public DateTime updateTime { get; set; }
        /// <summary>采集器名称</summary>
        public string name { get; set; }
        /// <summary>协议类型</summary>
        public string protocol_type { get; set; }
        /// <summary>ip地址</summary>
        public string net_ip { get; set; }
        /// <summary>端口</summary>
        public int net_port { get; set; }
        /// <summary>PLC的机架号，针对S7-400的PLC设置(默认0)</summary>
        public int net_rack { get; set; }
        /// <summary>PLC的槽号，针对S7-400的PLC设置(默认0)</summary>
        public int net_slot { get; set; }
        /// <summary>串口号</summary>
        public string com_port { get; set; }
        /// <summary>波特率</summary>
        public int com_baudrate { get; set; }
        /// <summary>数据位，(8,7,6,5),默认8</summary>
        public int com_databits { get; set; }
        /// <summary>停止位，(0,1,2)默认1</summary>
        public int com_stopbits { get; set; }
        /// <summary>奇偶校验（无，奇，偶），默认：无</summary>
        public string com_parity { get; set; }
        /// <summary>站号(默认2)</summary>
        public int com_station { get; set; }
        /// <summary>任务频率(重复间隔，单位：秒)</summary>
        public int interval_inseconds { get; set; }


    }
}
